How to Develop an R Shiny Dashboard In 10 Minutes or Less {https://t.co/DIY459wFAo} #rstats #DataScience
— R-bloggers (@Rbloggers) January 25, 2022
How to join tables in R {https://t.co/axTchdaZs2} #rstats #DataScience
— R-bloggers (@Rbloggers) January 26, 2022
ggplot tips: Assigning Labels to an Aesthetic {https://t.co/CVilAKoZOo} #rstats #DataScience
— R-bloggers (@Rbloggers) January 23, 2022
Three Videos to Supercharge Your R Skills {https://t.co/56o26jJmfg} #rstats #DataScience
— R-bloggers (@Rbloggers) January 29, 2022
A Structural Model of the World Happiness Report {https://t.co/Y9eRAi58aB} #rstats #DataScience
— R-bloggers (@Rbloggers) January 23, 2022
Progress update: Geocomputation with R Second Edition Part 1 {https://t.co/h8tDsG54Ew} #rstats #DataScience
— R-bloggers (@Rbloggers) January 27, 2022
String Manipulation with Stringr {https://t.co/APLTC2gPPl} #rstats #DataScience
— R-bloggers (@Rbloggers) January 29, 2022
container: v1.0.0 on CRAN {https://t.co/2BrTbIKDLJ} #rstats #DataScience
— R-bloggers (@Rbloggers) January 23, 2022
Automatic differentiation in R with Stan Math {https://t.co/EItPjEJRZ2} #rstats #DataScience
— R-bloggers (@Rbloggers) January 24, 2022
Making a package from base R files {https://t.co/Dlfa3rQQvH} #rstats #DataScience
— R-bloggers (@Rbloggers) January 28, 2022
Predicting When Kickers Get Iced with {tidymodels} {https://t.co/PhIcTMZ4e0} #rstats #DataScience
— R-bloggers (@Rbloggers) January 24, 2022
Text Mining Chocolate Bar Characteristics with {tidytext} {https://t.co/wl43ou5S7y} #rstats #DataScience
— R-bloggers (@Rbloggers) January 27, 2022
Animated topographic visualization in R {https://t.co/qx84X666CQ} #rstats #DataScience
— R-bloggers (@Rbloggers) January 23, 2022
Finally understanding what “statistical significance” and p-values mean: A simple example (w {https://t.co/MsbbkgSlDk} #rstats #DataScience
— R-bloggers (@Rbloggers) January 9, 2022
How to Develop an R Shiny Dashboard In 10 Minutes or Less {https://t.co/DIY459wFAo} #rstats #DataScience
— R-bloggers (@Rbloggers) January 25, 2022
Time Series Forecasting Lab (Part 1) – Introduction to Feature Engineering {https://t.co/lNWsuEBa5Q} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
Time Series Forecasting Lab (Part 3) – Machine Learning with Workflows {https://t.co/QHlBMs8iGt} #rstats #DataScience
— R-bloggers (@Rbloggers) January 22, 2022
Using bayesian optimisation to tune a XGBOOST model in R {https://t.co/fXXU4DMaEe} #rstats #DataScience
— R-bloggers (@Rbloggers) January 8, 2022
Tips for building a Twitter bot with R and Github Actions {https://t.co/FTrKW1S0zL} #rstats #DataScience
— R-bloggers (@Rbloggers) January 16, 2022
A package of Machine Learning datasets has arrived for R – MLDataR {https://t.co/VUSqbrTFem} #rstats #DataScience
— R-bloggers (@Rbloggers) January 5, 2022
Top 7 Best R Shiny Books and Courses That Are Completely Free {https://t.co/v8JBTXbhPr} #rstats #DataScience
— R-bloggers (@Rbloggers) January 6, 2022
Binary image classification using Keras in R: Using CT scans to predict patients with Covid {https://t.co/PZTKZC9TSu} #rstats #DataScience
— R-bloggers (@Rbloggers) January 2, 2022
Introduction to Geospatial Visualization with the tmap package {https://t.co/fPasXDp9jb} #rstats #DataScience
— R-bloggers (@Rbloggers) December 31, 2021
How To Connect R Shiny to Postgres Database – The Definite Guide {https://t.co/RXkj93s8IF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 11, 2022
Using databases with Shiny {https://t.co/Og4tMdVVzF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 2, 2022
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```